package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDate;


public class SourceInfo {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDate getTime() {
        return time;
    }

    public void setTime(LocalDate time) {
        this.time = time;
    }

    private int age;
    private String sex;
    private LocalDate time;

    public SourceInfo(String name, int age, String sex, LocalDate time) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.time = time;
    }

    public SourceInfo() {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.time = time;
    }

    @Override
    public String toString() {
        return "SourceInfo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", time=" + time +
                '}';
    }
}
